package voxToolkit;

import java.awt.AWTEvent;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;

import grafico.Fabrica;

import javax.swing.JCheckBox;

import main.Contexto;

import audio.AudioSintetizado;
import audio.SoundEvent;
import audio.SoundListener;

public class VoxCheckBox extends JCheckBox {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
		
	/**
	 * Constrói um objeto com o texto pré-definido.
	 * @param texto
	 */
	public VoxCheckBox(String texto) {           
		
		super(texto);
		
		VoxCheckBoxEvent voxCheckBoxEvent = VoxCheckBoxEvent.instancia();
			
		this.setBackground(FabricaVoxToolkit.background);
		this.setForeground(FabricaVoxToolkit.branco);
		this.setBorder(FabricaVoxToolkit.bordaClara);
		this.setFont(FabricaVoxToolkit.fonteMedia);        
		
		addActionListener(voxCheckBoxEvent);
		addFocusListener(voxCheckBoxEvent);
		
	}

	
	
}

